package com.mspbots.rule.queue.tsheet;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName com.mspbots.rule.queue.ticket.InProcessQueue
 * @Description TODO
 * @Author Jun
 * @Date 2019/9/2 16:04
 * @Version 1.0
 **/
@Slf4j
@Component
public class TsheetInCheckQueue extends TsheetBaseQueue {

//    private static final String RULE_NAME = "TsheetInCheck";

//    @RabbitListener(queues = "trigger.tsheet.TsheetInCheck")
//    public void onQueue(SheetsTimeDTO sheetsTimeDTO) {
//        log.info("TsheetInCheck queue: {} ", sheetsTimeDTO);
//        if (LocalDateTime.now().minusHours(24).isBefore(sheetsTimeDTO.getLastModified())) {
//            super.onRule(RULE_NAME, sheetsTimeDTO);
//        }
//    }

}
